const path = require('path')
const VueLoaderPlugin = require('vue-loader/lib/plugin')
const webpack = require('webpack')

module.exports = {
  entry: './src/main.js',
  output: {
    path: path.join(__dirname, './dist'),
    filename: 'bundle.js'
  },
  module: {
    rules: [
      { test: /\.css$/, use: ['style-loader', 'css-loader'] },
      {
        test: /\.(jpg|png|gif|bmp|jpeg|eot|svg|ttf|woff|woff2)$/, use: [
          { loader: 'url-loader', options: { esModule: false } }
        ]
      },
      { test: /\.js$/, use: 'babel-loader', exclude: /node_modules/ },
      { test: /\.vue$/, use: 'vue-loader' }
    ]
  },
  plugins: [
    new VueLoaderPlugin(),
    new webpack.BannerPlugin(' L-Frame v1.0.0 \n (c) 2020 Yicheng Liu \n Released under the MIT License.')
  ]
}